package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentAssignmentSubmissionsMapper;
import com.ruoyi.system.domain.StudentAssignmentSubmissions;
import com.ruoyi.system.service.IStudentAssignmentSubmissionsService;

/**
 * 学生作业提交Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-15
 */
@Service
public class StudentAssignmentSubmissionsServiceImpl implements IStudentAssignmentSubmissionsService 
{
    @Autowired
    private StudentAssignmentSubmissionsMapper studentAssignmentSubmissionsMapper;

    /**
     * 查询学生作业提交
     * 
     * @param submissionId 学生作业提交主键
     * @return 学生作业提交
     */
    @Override
    public StudentAssignmentSubmissions selectStudentAssignmentSubmissionsBySubmissionId(Long submissionId)
    {
        return studentAssignmentSubmissionsMapper.selectStudentAssignmentSubmissionsBySubmissionId(submissionId);
    }

    /**
     * 查询学生作业提交列表
     * 
     * @param studentAssignmentSubmissions 学生作业提交
     * @return 学生作业提交
     */
    @Override
    public List<StudentAssignmentSubmissions> selectStudentAssignmentSubmissionsList(StudentAssignmentSubmissions studentAssignmentSubmissions)
    {
        return studentAssignmentSubmissionsMapper.selectStudentAssignmentSubmissionsList(studentAssignmentSubmissions);
    }

    /**
     * 新增学生作业提交
     * 
     * @param studentAssignmentSubmissions 学生作业提交
     * @return 结果
     */
    @Override
    public int insertStudentAssignmentSubmissions(StudentAssignmentSubmissions studentAssignmentSubmissions)
    {
        return studentAssignmentSubmissionsMapper.insertStudentAssignmentSubmissions(studentAssignmentSubmissions);
    }

    /**
     * 修改学生作业提交
     * 
     * @param studentAssignmentSubmissions 学生作业提交
     * @return 结果
     */
    @Override
    public int updateStudentAssignmentSubmissions(StudentAssignmentSubmissions studentAssignmentSubmissions)
    {
        return studentAssignmentSubmissionsMapper.updateStudentAssignmentSubmissions(studentAssignmentSubmissions);
    }

    /**
     * 批量删除学生作业提交
     * 
     * @param submissionIds 需要删除的学生作业提交主键
     * @return 结果
     */
    @Override
    public int deleteStudentAssignmentSubmissionsBySubmissionIds(Long[] submissionIds)
    {
        return studentAssignmentSubmissionsMapper.deleteStudentAssignmentSubmissionsBySubmissionIds(submissionIds);
    }

    /**
     * 删除学生作业提交信息
     * 
     * @param submissionId 学生作业提交主键
     * @return 结果
     */
    @Override
    public int deleteStudentAssignmentSubmissionsBySubmissionId(Long submissionId)
    {
        return studentAssignmentSubmissionsMapper.deleteStudentAssignmentSubmissionsBySubmissionId(submissionId);
    }
}
